package com.example.swimmingpool.controller.vip;

import com.example.swimmingpool.response.CommonResponse;
import com.example.swimmingpool.service.vip.VipService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/vip")
public class VipController {
    @Resource
    private VipService vipService;

    @PostMapping("/is")
    public CommonResponse<Boolean> isVip() {
        return CommonResponse.success(vipService.isVip());
    }

    @PostMapping("/become")
    public CommonResponse<Boolean> becomeVip() {
        return CommonResponse.success(vipService.becomeVip());
    }
}
